<template>
	<view class="container">
		<view class="bankCard">
			<img src="../../static/verifyBankCard/card.png" class="bankImg">
			<view class="bankName">
				中国建设银行
			</view>
		</view>
		<view class="verify">
			<view class="titles">
				已向以下<text>银行预留手机号</text>发送验证码
			</view>
			<form>
				<view class="cu-form-group">
					<view class="title">手机号</view>
					<input name="input" v-model="phoneName"></input>
					<button class='cu-btn shadow' style="background-color: transparent;color: #666666">更换</button>
				</view>
				<view class="cu-form-group">
					<view class="title">验证码</view>
					<input placeholder="请输入验证码" name="input"></input>
					<button class='cu-btn shadow' style="background-color: transparent;color: #666666">获取</button>
				</view>
				<view class="padding-xl">
					<button class="cu-btn block bg-blue margin-tb-sm lg" @tap="toPayment">
						<text class="cuIconfont-spin" :class="loading ? 'cuIcon-loading2' : ''"></text>下一步</button>
				</view>
			</form>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				phoneName: '186****2786',
				loading: false
			}
		},
		methods: {
			toPayment(){
				uni.navigateTo({
					url:'../payment/payment'
				})
			}
		}
	}
</script>

<style scoped="scoped" lang="scss">
	/* #ifndef MP-WEIXIN */
	.container {
		height: calc(100vh - 90rpx);
		background-color: #FFFFFF;
	}

	/* #endif */
	/* #ifdef MP-WEIXIN */
	.container {
		height: 100vh;
		background-color: #FFFFFF;
	}

	/* #endif */
	.bankCard {
		height: 380rpx;
		background-color: #3476f1;
		display: flex;
		flex-direction: column;
		justify-content: space-evenly;
		align-items: center;

		.bankImg {
			width: 150rpx;
			height: 150rpx;
		}

		.bankName {
			font-size: 35rpx;
			color: #FFFFFF;
		}
	}

	.verify {
		height: 400rpx;

		.titles {
			height: 100rpx;
			font-size: 30rpx;
			line-height: 100rpx;
			padding-left: 30rpx;

			text {
				font-size: 32rpx;
				font-weight: bold;
			}
		}

		form {
			.cu-form-group {
				font-size: 32rpx;
			}
		}
	}
</style>
